<template>
  <div class="asset-info-header">
    <div class="row-top">
      <span class="name">{{ name }}</span>
      <span class="number">No.{{ number }}</span>
    </div>
    <div class="row-bottom">
      <span class="address">地址：{{ address }}</span>
      <span class="area">资产面积：{{ area }}㎡</span>
    </div>
    <el-divider />
  </div>
</template>

<script setup>
defineProps({
  name: String,
  number: String,
  address: String,
  area: [String, Number],
});
</script>

<style scoped lang="scss">
.asset-info-header {
  .row-top {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: #222;
    .name {
      margin-right: 32px;
    }
    .number {
      font-size: 18px;
      font-weight: bold;
      color: #222;
    }
  }
  .row-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    color: #999;
    .address {
      flex: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .area {
      margin-left: 24px;
      white-space: nowrap;
    }
  }
}
</style>
